package com.dces.jx.billtest.api.logDetailManage;
import com.dces.jx.billtest.dto.logDetailManage.DcDecLogDetailDto;
import com.dces.jx.billtest.common.service.ExcelService;
import com.dces.jx.billtest.common.model.PCodeType;
import com.dces.jx.billtest.dto.logDetailManage.DcDecLogDetailDto;
import com.dces.jx.billtest.dto.logDetailManage.DcDecLogDetailParam;
import com.dces.jx.billtest.dto.logDetailManage.DcDecLogDetailExportParam;
import com.dces.jx.billtest.logDetailManage.service.DcDecLogDetailService;
import com.xdo.pcode.service.PCodeHolder;
import com.xdo.common.token.UserInfoToken;
import com.xdo.domain.PageParam;
import com.xdo.domain.ResultObject;
import com.xdo.springboot.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.Valid;
import java.net.URLEncoder;
import java.util.List;
/**
 * generated by Generate dc
 * 
 *
 * @author xdoV2.0
 * @date: 2021-9-23
 */
@RestController
@RequestMapping("v1/dcDecLogDetail")
@Api(tags = "接口")
public class DcDecLogDetailController extends BaseController {
    @Resource
    private DcDecLogDetailService dcDecLogDetailService;
    @Resource
    private PCodeHolder pCodeHolder;
    @Resource
    private ExcelService excelService;
    /**
     * @param dcDecLogDetailParam
     * @param pageParam
     * @return
     */
    @ApiOperation("分页查询接口")
    @PostMapping("list")
    public ResultObject<List<DcDecLogDetailDto>> getListPaged(@RequestBody DcDecLogDetailParam dcDecLogDetailParam, PageParam pageParam) {
        ResultObject<List<DcDecLogDetailDto>> paged = dcDecLogDetailService.selectAllPaged(dcDecLogDetailParam, pageParam);
        return paged;
    }
}
